package cn.liufuwen.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Select;

import cn.liufuwen.domain.Orders;

public interface OrdersMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Orders record);

    int insertSelective(Orders record);

    Orders selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Orders record);

    int updateByPrimaryKey(Orders record);
    @Select("select id from orders where user_id = #{userId} and status=0")
    String selectIdByUserID(Integer userId);
    
    List<Orders> selectListOrdersByUserID(Integer userId);
}